import pydicom

# 数据路径
file_path = r"C:\Users\18049\Desktop\nii\1_unclassified_dcm\metastasis 2022" \
            r"\WANG CUI HUA_M00263248\MR__20220222080850_1922405" \
            r"\11_t1_vibe_fs_tra_bh_p2_100057" \
            r"\1.3.12.2.1107.5.2.32.35247.2022022208245528161261633.dcm"

# r"\1.3.12.2.1107.5.2.32.35247.2022022208245524455461630.dcm"
file_info = pydicom.read_file(file_path)
# print(file_info)
print(file_info.InstanceNumber)


# data1 = pydicom.dcmread(file_path)


# dicom_dataset = pydicom.dcmread(file_path)
# series_number = dicom_dataset.SeriesNumber
# print(series_number)

